package cn.calm.cxf.restful.service;

import org.apache.cxf.jaxrs.JAXRSBindingFactory;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;

public class Server {
	public static void main(String[] args) {  
//        RoomService service = new RoomService();  
  
        // Service instance  
        JAXRSServerFactoryBean restServer = new JAXRSServerFactoryBean();  

        restServer.setResourceClasses(RoomServiceImpl.class);
        restServer.setBindingId(JAXRSBindingFactory.JAXRS_BINDING_ID);
        restServer.setAddress("http://localhost:9999/test");  
        restServer.create();  
    }  
}
